import request from '@/utils/request'

// 查询达人推广费用明细列表
export function listBiTalentPromotionDetail(query) {
  return request({
    url: '/live/BiTalentPromotionDetail/list',
    method: 'get',
    params: query
  })
}

// 查询达人推广费用明细详细
export function getBiTalentPromotionDetail(id) {
  return request({
    url: '/live/BiTalentPromotionDetail/' + id,
    method: 'get'
  })
}

// 新增达人推广费用明细
export function addBiTalentPromotionDetail(data) {
  return request({
    url: '/live/BiTalentPromotionDetail',
    method: 'post',
    data: data
  })
}
// 新增达人推广费用明细
export function synData(data) {
  return request({
    url: '/live/BiTalentPromotionDetail/synData',
    method: 'post',
    data: data
  })
}
// 修改达人推广费用明细
export function updateBiTalentPromotionDetail(data) {
  return request({
    url: '/live/BiTalentPromotionDetail',
    method: 'put',
    data: data
  })
}

// 删除达人推广费用明细
export function delBiTalentPromotionDetail(id) {
  return request({
    url: '/live/BiTalentPromotionDetail/' + id,
    method: 'delete'
  })
}
